package com.kc.data.scenic.controller;

/**
 * @ClassName BizDictDataController
 * @Description 字典管理Controller
 * @Author wangdongliang
 * @Date 2021/6/16 9:48
 */

import com.kc.data.common.core.AjaxResult;
import com.kc.data.common.domain.model.SysDictData;
import com.kc.data.common.service.ISysDictDataService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/business/dictData")
public class BizDictDataController {
    @Resource
    private ISysDictDataService dictDataService;

    /**
     * 获取列表
     * @param dictData
     * @return
     */
    @PostMapping("/list")
    public AjaxResult list(@RequestBody SysDictData dictData)
    {
        List<SysDictData> list = dictDataService.selectDictDataList(dictData);
        return AjaxResult.success(list);
    }
}

